package com.zgh.zhongcan;

import lombok.extern.slf4j.Slf4j;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.web.servlet.ServletComponentScan;
import org.springframework.transaction.annotation.EnableTransactionManagement;

/**
 * @author 时侍
 * @version 1.0
 **/
@Slf4j
@SpringBootApplication
@ServletComponentScan(basePackages = "com.zgh.zhongcan")//添加包扫描
@MapperScan("com.zgh.zhongcan.mapper")//扫描mapper类
/*@EnableTransactionManagement//开启事务,springboot已经自动配置*/
public class ZhongCanApplication {
    public static void main(String[] args) {
        SpringApplication.run(ZhongCanApplication.class);
        log.info("项目启动成功");
    }
}





